home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / fpu881 / src6.zoo / fprintf.c < prev    next >
C/C++ Source or Header  |  1991-09-24  |  867b  |  53 lines

  1. /* from Dale Schumacher's dLibs */
  2.  
  3. #define __SRC__    /* keep compiler happy about protos */
  4. #include <stdio.h>
  5. #include <stdarg.h>
  6.  
  7. #ifdef __STDC__
  8. extern    int    fputc(int, FILE *);
  9. #else
  10. extern    int    fputc();
  11. #endif
  12.  
  13.  
  14. fprintf(fp, fmt, arg)
  15.     FILE *fp;
  16.     const char *fmt;
  17.     int arg;
  18.     {
  19.     return(_doprnt(fp, fmt, &arg));
  20.     }
  21.  
  22. vfprintf(fp, fmt, args)
  23.     FILE *fp;
  24.     const char *fmt;
  25.     va_list args;
  26.     {
  27.     return(_doprnt(fp, fmt, args));
  28.     }
  29.  
  30. printf(fmt, arg)
  31.     const char *fmt;
  32.     int arg;
  33.     {
  34.     return(_doprnt(stdout, fmt, &arg));
  35.     }
  36.  
  37. vprintf(fmt, args)
  38.     const char *fmt;
  39.     va_list args;
  40.     {
  41.     return(_doprnt(stdout, fmt, args));
  42.     }
  43.  
  44. /* This is used by the `assert' macro.  */
  45. void __eprintf (string, expression, line, filename)
  46. char *string;
  47. char *expression;
  48. long line;
  49. char *filename; /* note if STDC then filename is already in string */
  50. {
  51.     (void)_doprnt(stderr, string, &expression);
  52. }
  53.